<?php

defined('SYSPATH') or die('Access error!');

/**
 * 用户中心的供求处理类
 * ============================================================================
 * 功能描述： 
 *     主要是显示用户的账户的记录以及处理用户的账户（在线的充值等等）
 * ============================================================================
 * $Author: liuxudong $
 */
class Controller_User_Trade_Post extends Controller_User_Main
{

    protected $trade;
    protected $where_arr = array();

    public function before()
    {
        parent::before();
        $this->trade = Model::factory('trade_post');
        $this->where_arr['user_id'] = $this->user_detail['id'];
    }





    public function display_list()
    {
        $trade_list = $this->trade->get_trade_list($this->where_arr);
        $this->template->assign('trade_list', $trade_list['list']);
        $this->template->assign('page', $trade_list['page']);
        $this->template->assign('server_time', Date::get_time());
        $this->template->view('user_trade_list');
    }

}